Skip to main content

Interface: AudioNodeInit<T, R>

Type parameters

NameType
Textends AudioNode = AudioNode
Rextends BaseAudioNode = BaseAudioNode

Hierarchy

Properties

audioNode

Readonly audioNode: undefined | T

Inherited from

Readonly.audioNode


name

Readonly name: string

Inherited from

Readonly.name


node

Readonly node: undefined | R

Inherited from

Readonly.node


outputs

Readonly outputs: WeakSet<AudioNodeInit<AudioNode, BaseAudioNode> | AudioParam>

Inherited from

Readonly.outputs


toJSON

Optional toJSON: () => unknown

Type declaration

▸ (): unknown

Returns

unknown

Methods

connect

connect(param): void

Internal function to connect a signal output Should ONLY be CALLED inside an AudioGraph

Parameters

NameTypeDescription
paramAudioNodeInitConnectParamThe init to connect

Returns

void


create

create(context, prevNode?): [T, R]

Internal function to create the actual AudioNode. Should ONLY be CALLED inside an AudioGraph

Parameters

NameTypeDescription
contextAudioContextAudio Context to use
prevNode?AudioNodeThe input AudioNode for connection

Returns

[T, R]


disconnect

disconnect(param): void

Internal function to disconnect a signal output Should ONLY be CALLED inside an AudioGraph

Parameters

NameTypeDescription
paramAudioNodeInitConnectParamThe init to disconnect

Returns

void


hasConnectedTo

hasConnectedTo(init): boolean

Check if there is a connection to the provided init

Parameters

NameTypeDescription
initAudioNodeInit<AudioNode, BaseAudioNode> | AudioParamAudioNodeInit

Returns

boolean


release

release(): void

Internal function to release the node init resources Should ONLY be CALLED inside an AudioGraph

Returns

void